package com.mallkit.core.events
{
	import com.adobe.cairngorm.control.CairngormEvent;

	public class SelectMainViewEvent extends CairngormEvent
	{
		/**
		 * Unique identifier for this event
		 */
		public static const SELECT_MAIN_VIEW_EVENT:String = "com.mallkit.core.events.SelectMainViewEvent";
		
		/**
		 * name of main view to select
		 * If value is empty string that indicates to keep main view unchanged
		 * @see com.mallkit.core.enums.MainViewsType
		 */
		public var mainView:String = "";
		
		/**
		 * name of sub view to select
		 * If value is empty string that indicates to keep sub view unchanged
		 * @see com.mallkit.core.enums.MainViewsType
		 */
		public var subView:String = "";
		
		/**
		 * If value is true, then reset the new selected view to its original
		 * state.
		 */
		public var resetView:Boolean = false;
		
		public function SelectMainViewEvent()
		{
			super(SELECT_MAIN_VIEW_EVENT);
		}
	}
}